package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    public List<Member> findAll();
    public void add(Member member);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public Integer findMemberCountBeforeDate(String date);

    public Integer findNewMemberByToday(String today);
    public Integer findTotalMember();

    public Integer findMemberCountAfterDate(String date);

    public List<Map<String, Object>> findMemberGenderCount();
    public Map<String, Object> findMemberAgeCount();
}
